﻿@{
    ViewBag.Title = "LinkManEdit";
}
@using CRM.Admin.Areas.Customer.Controllers
@using CRM.Admin.Contracts.Dto.Sys
@model CRM.Admin.Contracts.Dto.Customer.LinkManDto
@section head
{
   <link href="@Url.Content("~/ScriptPlugin/easyui/themes/gray/easyui.css")" rel="stylesheet" />
<link href="@Url.Content("~/ScriptPlugin/easyui/themes/icon.css")" rel="stylesheet" />
<script type="text/javascript" src="@Url.Content("~/ScriptPlugin/easyui/jquery.easyui.min.js")"></script>
<script type="text/javascript" src="@Url.Content("~/ScriptPlugin/easyui/locale/easyui-lang-zh_CN.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/KingsSharp.DataGrid.Filter.js")"></script>
<script src="@Url.Content("~/ScriptPlugin/WdatePicker/js/WdatePicker.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/form2json.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.min.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.extended.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/picdata.js")"></script>
<script src="@Url.Content("~/Scripts/jquery.linq.min.js")"></script>
<script type="text/javascript" src="@Url.Content("~/ScriptPlugin/webuploader/webuploader.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/KingsSharp.Uploader.js")"></script>
  <style type="text/css">
    .uploader {
        text-align: center;
        float: left;
        width: 50px;
        height: 32px;
        line-height: 32px;
        color: blue;
    }

    .uploader-show {
        float: left;
        width: 70%;
        line-height: 32px;
    }

        .uploader-show a {
            margin-right: 5px;
            color: green;
        }

        .uploader-show img {
            width: 100%;
            height: 32px;
        }

            .uploader-show img.mulit {
                width: 32px;
                height: 32px;
                padding-right: 5px;
            }
</style>

}
<form action="" id="LinkManEdit">
    <div class="content-form" id="content-form">
        <table class="content-table">
            <tr>
                <th><span>联系人名称</span></th>
                <td>
                    <input type="hidden" id="CustomerId" name="CustomerId" value="@Model.CustomerId" />
                    <input type="hidden" id="Id" name="Id" value="@Model.Id" />
                    <input type="text" data-valid="required" id="Name" name="Name" value="@Model.Name" />
                </td>
                <th>排序号</th>
                <td>
                    <input type="text" style="ime-mode:Disabled" id="Order" value="0" name="Order" onkeypress="KingsSharp.OnlyNum();" />
                </td>
            </tr>
            <tr>
                <th>部门</th>
                <td>
                    <input type="text" id="Department" name="Department" value="@Model.Department" />
                </td>
                <th>
                    职务
                </th>
                <td>
                    <input type="text" id="Job" name="Job" value="@Model.Job" />
                </td>
            </tr>
            <tr>
                <th>手机号码</th>
                <td>
                    <input type="text" id="Phone" name="Phone" value="@Model.Phone" />
                </td>
                <th>
                    座机号码
                </th>
                <td>
                    <input type="text" id="Tel" name="Tel" value="@Model.Tel" />
                </td>
            </tr>
            <tr>
                <th>传真</th>
                <td>
                    <input type="text" id="Fax" name="Fax" value="@Model.Fax" />
                </td>
                <th>
                    电子邮箱
                </th>
                <td>
                    <input type="text" id="Email" name="Email" value="@Model.Email" />
                </td>
            </tr>
            <tr>
                <th>邮政编码</th>
                <td>
                    <input type="text" id="PostCode" name="PostCode" value="@Model.PostCode" />
                </td>
                <th>
                    QQ号
                </th>
                <td>
                    <input type="text" id="QQnumber" name="QQnumber" value="@Model.QQnumber"/>
                </td>
            </tr>
            <tr>
                <th>联系地址</th>
                <td colspan="3">
                    <input type="text" id="Address" name="Address" value="@Model.Address" />
                </td>
            </tr>
        </table>
    </div>S
</form>
@section foot


{
    <script type="text/javascript">


        function SaveData(index) {
            if ($("#LinkManEdit").valid()) {
                var dto = $("#LinkManEdit").serializeArray();
                K.AjaxJson("@Url.Content("~/Customer/LinkMan/LinkManUpdate")", dto, function (result) {
                    parent.K.layer.callback(index, result, dto);
                    parent.K.layer.close(index);
                });
            }
        }
    </script>
}
